package com.tsd.base.dao;

import com.tsd.base.entity.BaseFundAccount;
import com.tsd.base.entity.BaseFundAccountExt;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseFundAccountMapper
 *
 * @author Hillpool
 * @date 2022/12/12 11:17:37
 */
public interface BaseFundAccountMapper {

    BaseFundAccount selectByPrimaryKey(Long id);

    BaseFundAccountExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(BaseFundAccount record);

    int insertSelective(BaseFundAccount record);

    int insertList(@Param("list") List<BaseFundAccountExt> list);

    int updateByPrimaryKey(BaseFundAccount record);

    int updateByPrimaryKeySelective(BaseFundAccount record);

    int updateList(@Param("list") List<BaseFundAccountExt> list);

    List<BaseFundAccountExt> selectByEntity(BaseFundAccountExt record);

    List<BaseFundAccountExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseFundAccountExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseFundAccountExt> selectByParams(@Param("params") Map<String, Object> params);
}